<?php 
	$pPageIsPublic = false;
	include '../_common.php';
	$_SESSION["m1"]="content";
	$_SESSION["m2"]="page-list";
	
?>
<?php include("header.php"); ?>    
<script type="text/javascript">
$(document).ready(function() {
//	$('#select-all').checkedToggle("ul.list-page", "Page");
});
</script>
<?php include("sidebar.php"); ?>
<div id="list">
<h2> Page List </h2>
	<!-- form method="post" name="frmFilter" >
		<ul id="subnav" style="padding-top:0; padding-bottom: 0; " >
			<li ><label for="select-all" class="first-check" ><input type="checkbox" name="select-all" id="select-all" />Select All</label></li>
			<li ><a href="javascript:void(0);" id="remAll"  >Delete Selecctioned</a></li>
			<><?php include("filter.php"); ?></li>
			<li class="noborder" >
				<a class="add" href="page-add.php" > Add a New Page </a>
			</li
		</ul>
	</form-->
 	<div id="list-row"  >
        <ul class="list-page"  >
<?php
	$lst = new Page();
	if ($lst ->loadItems(null, " #status like '{$chkstatus}%' AND #parentId = '".PARENT_PAGE."'" )) {
		while ($objItem = $lst ->rNext()) { 
?>        
            <li id="recordsArray_<?php echo $objItem->id; ?>" class="<?php echo $objItem->status=='Draft' ? 'draft' : ''; ?>" >
				<div>
					<label for="page-<?php echo $objItem->id ?>" ><!-- input  name="items[]" id="page-<?php echo $objItem->id;?>" type="checkbox" value="<?php echo $objItem->id;?>" /-->
					<?php echo $objItem->title; ?></label>
<?php if (strlen(trim(strip_tags($objItem->description)))>0):?>
					<p><?php echo truncate_string(strip_tags($objItem->description), 230)   ?></p><?php endif;?>
                	<p class="itemsubnav" style="padding-left:0;" >
                    	<a href="<?php echo $objItem ->id == 2 ? "contact-page.php" : "page-add.php?id={$objItem->id}"  ?>" title="Edit" >Edit</a>
                    	<!-- a id="del" href="javascript:void(0);" title="" >Remove</a-->
                	</p>
               	</div>
           </li>
<?php
		}
	} 
?>           
       	</ul>            		
       	<div class="clear"></div>
  	</div>
</div>
<div class="clear"></div>    
<?php include("footer.php"); ?>
